<?php
class Foo {
  public static $my_static = 'foo';
  
  public function staticValue() {
     return self::$my_static;
  }
   public function test() {
       echo "BaseClass::test() called" . PHP_EOL;
   }
    final public function moreTesting() {
       echo "BaseClass::moreTesting() called"  . PHP_EOL;
   }
}
class ChildClass extends Foo {
//    public function moreTesting() {
//        echo "ChildClass::moreTesting() called"  . PHP_EOL;
//    }
//  报错信息 Fatal error: Cannot override final method BaseClass::moreTesting()
}

print Foo::$my_static . PHP_EOL;
$foo = new Foo();

print $foo->staticValue() . PHP_EOL;
?>    
